<?php
namespace app\admin\model;
use \think\Model;

class Brand extends Model
{
    public function getSortOrdernAttr($v,$d)
    {
        return $d['sort_order']?'images/√.jpg':'images/X.jpg';

    }
    public function getRecommendednAttr($v,$d)
    {
        return $d['recommended']?'images/√.jpg':'images/X.jpg';

    }
    public function getIfShownAttr($v,$d)
    {
        return $d['if_show']?'images/√.jpg':'images/X.jpg';

    }

    public static function  Brand()
    {
        return self::select();
    }
}